package org.elanfox.intellicommunity.intellicommunityadmin.vo;

import lombok.Data;
import org.elanfox.intellicommunity.biz.entity.msg.AlarmWorkOrderPO;
import org.elanfox.intellicommunity.data.base.vo.BaseVO;

/**
 * @author allan
 * @version 1.0.0
 * @date 2020/1/8
 */
@Data
public class AlarmWorkOrderVO implements BaseVO {
    private static final long serialVersionUID = -5617337278248806901L;

    /**
     * 工单编号
     */
    private String id;
    /**
     * 关联报警组
     */
    private Long groupId;
    /**
     * 处理地点
     */
    private String handleAddr;
    /**
     * 事发原因
     */
    private String reason;
    /**
     * 出警人员信息
     */
    private String policeName;
    private String policeMobile;
    /**
     * 处理结果备注
     */
    private String remark;

    public AlarmWorkOrderVO(AlarmWorkOrderPO alarmWorkOrderPO) {
        this.id = alarmWorkOrderPO.getId();
        this.groupId = alarmWorkOrderPO.getAlarmMsgGroupPO().getGroupId();
        this.handleAddr = alarmWorkOrderPO.getHandleAddr();
        this.reason = alarmWorkOrderPO.getReason();
        this.policeMobile = alarmWorkOrderPO.getPoliceMobile();
        this.policeName = alarmWorkOrderPO.getPoliceName();
        this.reason = alarmWorkOrderPO.getReason();
        this.remark = alarmWorkOrderPO.getRemark();
    }
}
